#!/bin/bash
#
# Misc utilities

action=$1
shift

case $action in

  unit-tests)
    find . -name \*test.py | sh -e -x
    ;;

  example)
    # this fails
    PYTHONPATH=. examples/taste_example_test.py
    ;;

  wc)
    find . -name \*.py | xargs wc -l "$@" | sort -n
    ;;

  *)
    echo "Invalid action '$action'"
    exit 1
    ;;
esac
